<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="<%=path %>/static/css/new-list.css">
<link rel="stylesheet" type="text/css" href="<%=path %>/static/css/table-list.css">
</head><body><div class="big-box">
    <div class="chaxuntj-list-title">
        <div class="message-box">
            <div class="chaxun-message">
                <div class="chaxun-tiaojian">
                    <ul>
                        <li>
                            <span>诊疗项目：</span>
                            <div class="input-box-new" style="width: 220px;">
                                <input type="text" id="chaxtj-jcxlb-mingcheng" placeholder="请输入诊疗项目名称查询">
                            </div>
                        </li>
                         <li>
                             <span>日期：</span>
                             <div class="input-box begin-time input-group date" id="jcx-datetimepicker1">
	                    		<input id="jcx-kaishjsj" class="form-control" type="text">
	                    		<span class="input-group-addon cxtj-timepicker-icon">
	                        		<span class="glyphicon glyphicon-calendar"></span>
	                    		</span>
	                		</div>
                             <span>-</span>
                             <div class="input-box end-time input-group date" id="jcx-datetimepicker2">
                                 <input id="jcx-jieshusj" class=" form-control" type="text">
                                 <span class="input-group-addon cxtj-timepicker-icon">
	                        		<span class="glyphicon glyphicon-calendar"></span>
	                   		 	 </span>
                             </div>
                         </li>
                    </ul>
                </div>
                <div class="button-box-new">
                    <button class="button" id="chaxtj-jcxlb-chaxunbtn"><span>查询</span></button>
                    <div class="button button1" id="chaxtj-jcxlb-chongzhibtn"><span>重置</span></div>
                </div>
            </div>
            <div class="clear"></div>
        </div>
        <!-- 隐藏后期使用 -->
        <div class="menu-tiaoj ">
            <div class="xuanze-tiaoj jianchaxiang">
            <input type="hidden" value="1" id="chaxtj-jcxlxcanshu">
                <span>统计方式：</span>
                <ul>
                    <li id="lx-jcxmx" value="1">按销售明细</li>
                    <li id="lx-jcxhz" value="2">按诊疗项汇总</li>
                </ul>
            </div>
            <div class="clear"></div>
        </div> 
        <div class="clear"></div>
    </div>
    <div id="cxtj-jcx-img"></div>
    <div class="list-content">
        <div class="table-list" style="display:none" id="chaxtj-jcxmxlbnr">
            <table width="100%" cellpadding="0" border="0" cellspacing="0">
                <thead>
                <tr>
                    <th width="5%">序号</th>
                    <th width="40%" class="left">诊疗项名称</th>
                    <th width="20%">收费日期</th>
                    <th width="20%">销售数量</th>
                    <th width="15%" class="right">销售金额（元）</th>
                </tr>
                </thead>
                <tbody id="tb-chaxtjjcxmx">
                </tbody>
            </table>
                <div id="pagination-fenyjcxmx"></div>
        </div>
        <!--按照诊疗项目汇总查询  -->
        <div class="table-list" style="display:none" id="chaxtj-jcxhzlbnr">
            <table width="100%" cellpadding="0" border="0" cellspacing="0">
                <thead>
                <tr>
                    <th width="5%">序号</th>
                    <th width="50%" class="left">诊疗项名称</th>
                    <th width="25%">销售数量</th>
                    <th width="20%" class="right">销售金额（元）</th>
                </tr>
                </thead>
                <tbody id="tb-chaxtjjcxhz">
                </tbody>
            </table>
            <div id="pagination-fenyjcxhz"></div>
        </div>
    </div>
</div>
        <script src="<%=path %>/static/js/chaxtj-jcx.js"></script>
        <script>
         $(function(){
        myDateTimePicker($("#jcx-datetimepicker1"),$("#jcx-datetimepicker2"));
		 var mrkaishisj=$('#jcx-kaishjsj').val();
         var mrjieshusj=$('#jcx-jieshusj').val();
		 getShijian(mrkaishisj,mrjieshusj);
        });
        </script></body></html>